package com.our.sys.project1.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

import com.our.sys.orm.hibernate.AuditableEntity;

/**
 * 医疗器材许可证
 * @author acer
 *
 */
@Entity
@Table(name = "B_Medicallicenses")
public class Medicallicenses extends AuditableEntity implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -2435405977496266033L;

    @ViewField
    private Long supplierId;
    @ViewField(header = "供应商名称", width = 200, align = "left")
    private String supplier;
    @ViewField
    private Long produceId;
    @ViewField(header = "生产厂家名称", width = 200, align = "left")
    private String produce;
    @ViewField(header = "厂家简称", width = 200, align = "left")
    private String shortName;
    @ViewField(header = "医疗器械注册号", width = 200, align = "left")
    private String registerNo;
    @ViewField(header = "高值耗材通用名", width = 200, align = "left")
    private String highValueAllName;
    @ViewField(header = "通用名拼音码", width = 100, align = "left")
    private String hapy;
    @ViewField(header = "通用名五笔码", width = 100, align = "left")
    private String hawb;
    @ViewField(header = "高值耗材商品名", width = 200, align = "left")
    private String highValueItemName;
    @ViewField(header = "商品名拼音码", width = 100, align = "left")
    private String hipy;
    @ViewField(header = "商品名五笔码", width = 100, align = "left")
    private String hiwb;
    @ViewField(header = "审批日期", width = 200, align = "left")
    private String checkDate;
    @ViewField(header = "有效期至", width = 200, align = "left")
    private String endDate;
    @ViewField(header = "拼音助记符", width = 100, align = "left")
    private String py;
    @ViewField(header = "五笔助记符", width = 100, align = "left")
    private String wb;
    @ViewField
    private String imgSrc;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "B_Medicallicenses")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public Long getProduceId() {
        return produceId;
    }

    public void setProduceId(Long produceId) {
        this.produceId = produceId;
    }

    public String getProduce() {
        return produce;
    }

    public void setProduce(String produce) {
        this.produce = produce;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getRegisterNo() {
        return registerNo;
    }

    public void setRegisterNo(String registerNo) {
        this.registerNo = registerNo;
    }

    public String getHighValueAllName() {
        return highValueAllName;
    }

    public void setHighValueAllName(String highValueAllName) {
        this.highValueAllName = highValueAllName;
    }

    public String getHapy() {
        return hapy;
    }

    public void setHapy(String hapy) {
        this.hapy = hapy;
    }

    public String getHawb() {
        return hawb;
    }

    public void setHawb(String hawb) {
        this.hawb = hawb;
    }

    public String getHighValueItemName() {
        return highValueItemName;
    }

    public void setHighValueItemName(String highValueItemName) {
        this.highValueItemName = highValueItemName;
    }

    public String getHipy() {
        return hipy;
    }

    public void setHipy(String hipy) {
        this.hipy = hipy;
    }

    public String getHiwb() {
        return hiwb;
    }

    public void setHiwb(String hiwb) {
        this.hiwb = hiwb;
    }

    public String getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(String checkDate) {
        this.checkDate = checkDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }

    public String getWb() {
        return wb;
    }

    public void setWb(String wb) {
        this.wb = wb;
    }

    public String getImgSrc() {
        return imgSrc;
    }

    public void setImgSrc(String imgSrc) {
        this.imgSrc = imgSrc;
    }

}
